<link href="<?php echo URL::base() ?>media/vendor/css/ui-lightness/jquery-ui-1.10.4.custom.css" rel="stylesheet">
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-1.10.2.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery-ui-1.10.4.custom.js"></script>
<script src="<?php echo URL::base() ?>media/vendor/js/jquery.ui.datepicker-zh-TW.js"></script>
<div class="container-fluid">
    <form class="form-horizontal" method='get' action='<? echo URL::site() ?>qcwo/selectrecieve'>
        <div class="control-group">
            <label class="control-label">SKU:</label>
            <div class="controls">
                <input   type="text" name="sku"
                         value="<?php if (isset($getback['sku'])) {
                             echo $getback['sku'];
                         } ?>"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">供应商:</label>
            <div class="controls">
                <input id="search1"  type="text" name="supplierid" value="<?php if (isset($getback['supplierid'])) {
                    echo $getback['supplierid'];
                } ?>"/>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">仓库:</label>
            <div class="controls">
                <select name="ck">
                    <option>苏州仓库</option>
                    <option>深圳仓库</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">出库主体:</label>
            <div class="controls">
                <select name="ck">
                    <option>香港YKS</option>
                    <option>深圳YKS</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label">出库时间:</label>
            <div class="controls">
                <input  class="input-medium datepicker" type="text"
                        value="<?php if (isset($getback['date_from'])) {
                            echo $getback['date_from'];
                        } ?>" name='date_from'/ id="date_from"/>
                到 <input  class="input-medium datepicker" type="text"
                          value="<?php if (isset($getback['date_to'])) {
                              echo $getback['date_to'];
                          } ?>" name='date_to' id="date_to"/>
                <input class="btn btn-info" type="submit" name="sub" value="查询"/>
                <input class="btn btn-info" type="button" name="downbtn" id="downbtn"
                       value="导出"/>
            </div>
        </div>
    </form>
    <table class="table table-hover ">
        <thead>
        <tr>
            <th>VMI预约单号</th>
            <th>采购单号</th>
            <th>ERP单号</th>
            <th>SKU</th>
            <th>中文名称</th>
            <th>供应商</th>
            <th>出库主体</th>
            <th>仓库</th>
            <th>储位</th>
            <th>出库量</th>
            <th>单价</th>
            <th>金额</th>
            <th>出库时间</th>
        </tr>

        </thead>
        <tr>
            <td>V20171013001</td>
            <td>18513</td>
            <td>12244546</td>
            <td>Am01213</td>
            <td>5032汽车轮胎</td>
            <td>宁波市鄞州佳盛水泵电机厂</td>
            <td>苏州有棵树</td>
            <td>5号仓库</td>
            <td>a-50</td>
            <td>50</td>
            <td>10</td>
            <td>510</td>
            <td>2017-10-15</td>
        </tr>

    </table>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $.datepicker.setDefaults({dateFormat: 'yy-mm-dd'});
        $(".datepicker").datepicker();

    });
</script>
